var Gui={
    Tortilla:{
  		init:function(selectors){
			$A(selectors).each(function(selector){
  		  $$(selector).each(function(element){Gui.Tortilla.addCorners(element);})
				});
  		},
			addCorners:function(element){
				$A(['top_left','top_right','bottom_left','bottom_right']).each( function(className){element.addClassName('tortillated');element.appendChild(Gui.Tortilla.newCorner(className))});											
			},
			newCorner:function(className){
			  corner=document.createElement('div');
				corner.className+=className+' corner';
				return corner;
			}
		}		
}

Event.observe(window,'load',function(){Gui.Tortilla.init(['.article','.input','.optional','.required','.info','#tabs','#tags','#accountMenu','#adminMenu','#flashMessage'])});